package com.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Log {

	private static String logRoot = "";
	public static void init(String logRoot){
		 
	}
	
	public static void info(String msg){
		
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String cur = sdf.format(new Date());
		 
		FileUtils.write(logRoot+"/logs/info.txt",cur+" [INFO] "+msg);
	}
}
